﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using G.Web;
using G.WeiBo.WebAPI.Response;
using G.Net;

namespace G.WeiBo.WebAPI.Request
{
    public class CommentRequest : IRequest<ResponseData<G.WeiBo.WebAPI.Domain.Comment>>
    {


        public string ID { get; set; }

        public string Comment { get; set; }

        /// <summary>
        /// 要回复的评论ID。 
        /// </summary>
        public string CId { get; set; }

        /// <summary>
        /// 1：回复中不自动加入“回复@用户名”，0：回复中自动加入“回复@用户名”.默认为0. 
        /// </summary>
        public int WithoutMention { get; set; }

        /// <summary>
        /// 当评论一条转发微博时，是否评论给原微博。0:不评论给原微博。1：评论给原微博。默认0. 
        /// </summary>
        public int CommentOri { get; set; }

        public string GetURL()
        {
            return "comments/create.json";
        }

        public string HttpMethod()
        {
            return G.Net.HttpMethod.Post;
        }

        public System.Collections.Generic.IDictionary<string, string> GetParameters()
        {
            LocalDictionary parameters = new LocalDictionary();
            parameters.Add("id", ID);
            parameters.Add("cid", CId);
            parameters.Add("comment", Comment);
            parameters.Add("without_mention", WithoutMention);
            parameters.Add("comment_ori", CommentOri);
            return parameters;
        }
    }
}
